<?php

use \Base\Exception\Controller as Exception;
class Controller_Test extends Controller_Abstract {

    public function params() {
        $params = $this->request_params;
        return array(
            'id' => array(
                'value'=> $params['id'],
                'rule' => 'digit',
                'option' => array('error' => 'validate.demo')
            ),
        );
    }

    public function action() {
        $biz = new \Service\Test();
        $data = $biz->doTest();
        $this->response['data'] = $data;
        //new throw Exception('error uid', 0);
    }
}
